This page last changed on Sep 16, 2008 by williams.

Default Labeller

By default, CCNet uses a plain incrementing build number as a build label. Some source controls (e.g. Perforce Source Control Block) require you to use a different naming scheme if you want CCNet to apply labels to source control on successful builds.
You can do this by specifying your own configuration of the default labeller in your project.
The following configuration would prefix all labels with the string 'Foo-1-', so the 213th build would be labelled 'Foo-1-00213'.
The 2 leading zeros come from the labelFormat, this is set to a length of 5.

<project>
   <labeller type="defaultlabeller">
     <prefix>Foo-1-</prefix>
     <incrementOnFailure>true</incrementOnFailure>
     <labelFormat>00000</labelFormat>
   </labeller>
   <!-- Other project configuration to go here -->
</project>


Configuration Elements:

Node Description Type Required Default
prefix Any string to be put in front of all labels string false ""
postfix
Any string to be put at the end of all labels string
false
""
incrementOnFailure If true, the label will be incremented even if the build fails. Otherwise it will only be incremented if the build succeeds. string false false
labelFormat A format applied to the buildnumber. string
false 0
Document generated by Confluence on Mar 14, 2009 02:55